import { Component } from '@angular/core';
import { Input } from "@angular/core";
import { Router } from"@angular/router";

/**
 * Generated class for the ActionbtnComponent component.
 *
 * See https://angular.io/api/core/Component for more info on Angular
 * Components.
 */
@Component({
  selector: 'actionbtn',
  templateUrl: 'actionbtn.html'
})
export class ActionbtnComponent {

  @Input() name:object;

  constructor(private route:Router) {

  }

  gopage(pageurl){
    // 调到正确的页面
    this.route.navigate([pageurl])
  }
}
